module.exports = Behavior({
  properties: {},
  data: {},
  pageLifetimes: {
    show: function () {
      this._refreshStatus();
    },
  },
  created: function () {},
  attached: function () {
    this._refreshStatus();
  },
  ready: function () {},
  methods: {
    _refreshStatus: function () {
      var e = {};
      try {
        e = wx.getStorageSync('user') || {};
      } catch (e) {
        console.error('获取用户信息或者config失败了，但是不重要');
      }
      var t = 'wzgUser',
        r = 1;
      e.hasOwnProperty('member') &&
        ((t = e.member.type >= 3 ? 'wzgMember' : t), (r = e.member.type)),
        t && this.setData({ _userType: t, _use_type_num: r });
    },
  },
});
